package org.easy.elasticsearch;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.GeoPointField;
import org.springframework.data.elasticsearch.core.geo.GeoPoint;

/**
 * @program:
 * @description:
 * @author:
 * @create: 2022-11-22 14:55
 **/
@Data
@Document(indexName = "example_index")
public class ExampleIndexEsDto {
    @Id
    private Long companyId;
    @GeoPointField
    private GeoPoint location;
    @Field(type = FieldType.Integer)
    private Integer doctorCount;
    @Field(type = FieldType.Integer)
    private Integer registTime;
    private String logo;
    private String address;
    @Field(type = FieldType.Keyword)
    private String companyName;
}
